/**
 * Tungsten Scale-Out Stack
 * Copyright (C) 2010 Continuent Inc.
 * Contact: tungsten@continuent.org
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of version 2 of the GNU General Public License as
 * published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 *
 * Initial developer(s): Robert Hodges
 * Contributor(s): 
 */

package com.sync.event;

/**
 * This class provides a list of defined metadata option values.
 * 
 * @author <a href="mailto:robert.hodges@continuent.com">Robert Hodges</a>
 * @version 1.0
 */
public class ReplOptionParams
{
    /**
     * Indicates a heart beat event. The value is the optional heartbeat name or
     * "DEFAULT".
     */
    public static String HEARTBEAT               = "heartbeat";

    /**
     * Where clause in a consistency check. This signals that the current event
     * contains a consistency check.
     */
    public static String CONSISTENCY_WHERE       = "consistency_where";

    /**
     * Service that originally generated this event.
     */
    public static String SERVICE                 = "service";

    /**
     * If set to "true", this event is generated by Tungsten. If absent, the
     * event represents a normal transaction.
     */
    public static String TUNGSTEN_METADATA       = "is_metadata";

    /**
     * If set, contains the name of a shard to which this event is assigned.
     */
    public static String SHARD_ID                = "shard";

    /**
     * The default shard ID if no other ID can be assigned.
     */
    public static String SHARD_ID_UNKNOWN        = "#UNKNOWN";

    /**
     * Prefix for internal Tungsten options.
     */
    public static String INTERNAL_OPTIONS_PREFIX = "##";

    /**
     * Java character set name of byte-encoded strings. This is a statement
     * option.
     */
    public static String JAVA_CHARSET_NAME       = "##charset";

    /**
     * ServerId. This is a statement option.
     */
    public static String SERVER_ID               = "mysql_server_id";

    /**
     * Contains value "true" if the transaction is unsafe for bi-directional
     * replication.
     */
    public static String BIDI_UNSAFE             = "bidi_unsafe";
}